package com.rpoonolly.simplegame.animation;

import com.rpoonolly.simplegame.Config;
import com.rpoonolly.simplegame.core.aabb.DynamicAABBEntity;
import com.rpoonolly.simplegame.textures.TextureId;

public class TexturedDynamicEntity extends DynamicAABBEntity {
	private static final long serialVersionUID = 1L;
	
	private volatile TextureId texture;
	
	public TexturedDynamicEntity() {
		super();
		this.texture = new TextureId(Config.PLAYER_TEXTURE_MAP, 0, 2);
	}
	
	public TexturedDynamicEntity(int x, int y, int width, int height) {
		super(x, y, width, height);
		this.texture = new TextureId(Config.PLAYER_TEXTURE_MAP, 0, 2);
	}
	
	public TexturedDynamicEntity(TextureId texture, int x, int y, int width, int height) {
		super(x, y, width, height);
		this.texture = texture;
	}

	public TextureId getCurrentTexture() {
		return texture;
	}

	public void setCurrentTexture(TextureId currentTexture) {
		this.texture = currentTexture;
	}
}
